package org.iteasy.framework.commons;

public enum ResultEnum {
    success("000000","操作成功"),
    fail("100000","操作失败"),
    error("999999","系统异常"),

    ;

    public String code;

    public String message;

    ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public static boolean isSuccess(String code) {
        return ResultEnum.success.code.equals(code);
    }

}
